﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.ServiceModel.Activation;

namespace SalaryChannel.Web
{

    [ServiceContract(Namespace = "http://salary.yangchao.ts.gs.chinamobile/")]
     public interface IUserService
    {
        [OperationContract]
        UserInfoEntity Login(string UserID, string Pwd);
     
        [OperationContract]
         int ChangePwd(string UserID, string OldPwd, string NewPwd, bool isAdmin,string OPID);

        [OperationContract]
         List<VW_UserWithChannel> QueryUserInforByID(string UserID,string UserName);
        [OperationContract]
        List<VW_UserWithChannel> QueryUserInforByChannel(string ChannelID, string ChannelName);

        [OperationContract]
        string DeleteUser(string UserID, string OPID);

        [OperationContract]
        string AddUser(UserInfor user);

        [OperationContract]
        bool UpdateUser(UserInfor newUser);
        [OperationContract]
        bool UpdateTelEmail(string Tel, string Email, string UserID);

        [OperationContract]
        string GetMyPwd(string UserID, string AMPwd);

        [OperationContract]
        List<UserAuthEntity> GetUserAuth(string UserID);

        [OperationContract]
        bool UpdateUserAuth(string CreateUserID, string UserID, int[] Auths);


        [OperationContract]
        List<string> GetArea(string CityCode);

        [OperationContract]
        List<string> GetDistrict(string AreaCode);

        [OperationContract]
        int UpdateChannel(string ID, string Name, string AreaCode, string DistrictID, string OPID);

        [OperationContract]
        List<VW_ChannelWithDistrict> GetChannel(string id, string name);

        [OperationContract]
        string GetPwdByEmail(string UserID);

    }
}
